/****************************************************************************************************
* 版权所有： Copyright (c) 2015-2022 鑫光家纺. All rights reserved.
* 作    者： 半   饱
* 创建日期： 2022/8/8
* 界面功能： <#界面功能#>
****************************************************************************************************/

#import "BBAlertAction.h"

@interface BBAlertAction ()

@end

@implementation BBAlertAction

+ (instancetype)alertActionWithActionTitle:(NSString *)actionTitle withActionType:(BBAlertActionType)actionType withActionBlock:(BBActionBlock)actionBlock {
    BBAlertAction *alertAction = [[self alloc] init];
    alertAction.actionTitle = actionTitle;
    alertAction.actionType = actionType;
    alertAction.actionBlock = actionBlock;
    return alertAction;
}

+ (instancetype)alertActionWithActionTitle:(NSString *)actionTitle withActionType:(BBAlertActionType)actionType withActionIconImage:(UIImage *)actionIconImage withActionEdgeInsetStyle:(BBAlertActionEdgeInsetsStyle)actionEdgeInsetStyle withTextAndImageSpace:(CGFloat)textAndImageSpace withActionBlock:(BBActionBlock)actionBlock {
    BBAlertAction *alertAction = [[self alloc] init];
    alertAction.actionTitle = actionTitle;
    alertAction.actionType = actionType;
    alertAction.actionIconImage = actionIconImage;
    alertAction.actionEdgeInsetStyle = actionEdgeInsetStyle;
    alertAction.textAndImageSpace = textAndImageSpace;
    alertAction.actionBlock = actionBlock;
    return alertAction;
}
@end
